---
version: "2"
services:
  ledger-explorer:
      image: docker.repo:5000/bc-explorer:2.0
      container_name: explorer-v2
      restart: always
      ports:
          - "8080:3000"
      environment:
          - HYP_REST_ENDPOINT=http://139.196.113.38:7050
          - PORT=3000
  mongo:
    image: docker.repo:5000/mongo:3.2
    hostname: mongo
    container_name: ccer_mongo
    restart: unless-stopped
    mem_limit: 2048m
    volumes:
      - ./mongo:/data/db

  s3:
    image: docker.repo:5000/scality-s3server:latest
    hostname: s3
    container_name: s3
    restart: unless-stopped
    mem_limit: 2048m
    volumes:
      - /opt/ibm/ccer/s3:/usr/src/app/localData

  consultant:
      image: docker.repo:5000/ccer-consultant:{{ image_version }}
      container_name: consultant
      hostname: ccer-consultant
      ports:
          - "1111:8080"
      environment:
          - TZ=Asia/Shanghai
          - PORT=8080
          - S3_HOST=http://s3:8000
          - S3_ACCESS_TOKEN=accessKey1
          - S3_SECRET_TOKEN=verySecretKey1
          - S3_BUCKET=test
          - MONGO_HOST=mongo
      depends_on:
          - mongo
          - s3
#      links:
#          - mongo

  reform:
      image: docker.repo:5000/ccer-reform:{{ image_version }}
      container_name: reform
      hostname: ccer-reform
      ports:
          - "8888:8080"
      environment:
          - TZ=Asia/Shanghai
          - PORT=8080
          - S3_HOST=http://s3:8000
          - S3_ACCESS_TOKEN=accessKey1
          - S3_SECRET_TOKEN=verySecretKey1
          - S3_BUCKET=test
          - MONGO_HOST=mongo
      depends_on:
          - mongo
          - s3

  thirdcom:
      image: docker.repo:5000/ccer-thirdcom:{{ image_version }}
      container_name: thirdcom
      hostname: ccer-thirdcom
      ports:
          - "2333:8080"
      environment:
          - TZ=Asia/Shanghai
          - PORT=8080
          - S3_HOST=http://s3:8000
          - S3_ACCESS_TOKEN=accessKey1
          - S3_SECRET_TOKEN=verySecretKey1
          - S3_BUCKET=test
          - MONGO_HOST=mongo
      depends_on:
          - mongo
          - s3
